
public class work4_5 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int ken[] = {10,20,30,40,50};
		int i , ave, sum = 0;
		System.out.println("***** result *****");
		
		
		for(i=0;i<5;i++)
		{
			sum = ken[i]+sum;
			System.out.println("ken["+i+"] = "+ken[i]);
		}
		ave = sum/5;
		
		System.out.println("sum = " + sum);
		System.out.println("average = " + ave);
		
	}

}
